import request from '@/utils/request'

// 查询质量内部损失列表
export function listInternalLosses(query) {
  return request({
    url: '/quality/internalLosses/list',
    method: 'get',
    params: query
  })
}

// 查询质量内部损失详细
export function getInternalLosses(lossesId) {
  return request({
    url: '/quality/internalLosses/' + lossesId,
    method: 'get'
  })
}

// 新增质量内部损失
export function addInternalLosses(data) {
  return request({
    url: '/quality/internalLosses',
    method: 'post',
    data: data
  })
}

// 修改质量内部损失
export function updateInternalLosses(data) {
  return request({
    url: '/quality/internalLosses',
    method: 'put',
    data: data
  })
}

// 删除质量内部损失
export function delInternalLosses(lossesId) {
  return request({
    url: '/quality/internalLosses/' + lossesId,
    method: 'delete'
  })
}
